Skip to content

upgrade custom-endorser to test committer v1.0.3#24

Open
Storm1289 wants to merge 1 commit into
hyperledger:mainfrom
Storm1289:upgrade-custom-endorser-committer-v1.0.3
Open

upgrade custom-endorser to test committer v1.0.3#24
Storm1289 wants to merge 1 commit into
hyperledger:mainfrom
Storm1289:upgrade-custom-endorser-committer-v1.0.3

Conversation

@Storm1289

Copy link
Copy Markdown

Closes #23.

Summary

Upgrades the custom-endorser sample to the test committer v1.0.3 and refreshes all direct go.mod dependencies to their latest compatible versions, aligning the sample with the self-contained crypto pattern used in the fabric-x-sdk Makefile.

This removes the legacy cryptogen-generated network setup and migrates the sample to the new committer API surface.

Changes

Dependency upgrades

Updated:

  • fabric-x-committer v0.1.9v1.0.3
  • fabric-x-commonv0.2.6
  • fabric-x-sdk → latest
  • grpc
  • fabric-lib-go
  • fabric-protos-go-apiv2

This brings the sample in line with the current SDK / committer stack.


Crypto bootstrap changes

init-network now extracts the embedded crypto material directly from the committer image instead of generating it via cryptogen.

Changes:

  • org names updated to:
    • peer-org-0
    • peer-org-1
  • removed obsolete:
    • crypto-config.yaml
    • configtx.yaml

This matches the new self-contained committer flow.


Committer API migration

Migrated from the old connection package APIs:

Before:

  • connection.ServerConfig
  • connection.StartService
  • connection.DefaultHealthCheckService

After:

  • serve.Config
  • serve.Servers
  • serve.StartAndServe

Also updated:

  • NewSubmitter(ctx, ...)
  • fabrictest.Start(ctx, ...)

to the new context-aware signatures.


Docker Compose / namespace flow

The committer now runs self-contained without crypto mounts.

Namespace creation now follows the explicit multi-step endorse → submit flow under:

AND('peer-org-0.member','peer-org-1.member')

Upgrade the test committer to v1.0.3 and bump all direct go.mod
dependencies to their latest versions, following the self-contained
crypto pattern from the fabric-x-sdk Makefile.

- extract the committer's embedded crypto material instead of
  generating it with cryptogen (orgs are now peer-org-0/peer-org-1)
- migrate to the committer's serve package (StartAndServe, Servers,
  DefaultHealthCheckService) and the ctx-aware NewSubmitter/fabrictest.Start
- dial the orderer by name (its cert has a localhost SAN, no IP SAN)
- wait after submitting so the async broadcast reaches the orderer
- update Makefile, compose, sample configs and README accordingly

Signed-off-by: Storm1289 <divakarsharm2934@gmail.com>
@Storm1289

Copy link
Copy Markdown
Author

Hi @arner, whenever you have some time, take a look at the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade test commiter in custom-endorser to v1.0.3

1 participant